  // 截取页面的参数
  export default function getUrlParams(paraName) {
    var url = document.location.toString();
    var arrObj = url.split("?");
    if (arrObj.length > 1) {
      var arrPara;
      for (var j = 1; j < arrObj.length; j++) {
        arrPara = arrObj[j].split("&");
      }
      var arr;
      for (var i = 0; i < arrPara.length; i++) {
        arr = arrPara[0].split("=");
      }
      for (var k = 0; k < arr.length; k++) {
        if (arr[k] == paraName) {
          //   this.id = arr[k + 1];
          return arr[k + 1];
          //   break;
        }
      }
      return "";
    } else {
      return "";
    }
  }
